← Back to issue list

organize should at least warn when you use absolute paths

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1671212
Type
issue
State
open
Author
~ev
Labels
Created
2017-03-08 19:26:04.480841+00:00
Updated
2017-03-10 01:08:12.725848+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

If you try to: organize: /usr/bin/python3.5: "/usr/bin/python" You'll get: Trying to organize file '/usr/bin/python3.5' to '../../../../../../../../../usr/bin/python', but '../../../../../../../../../usr/bin/python' already exists If instead you try: organize: /usr/bin/python3.5: "python" You'll get: [Errno 13] Permission denied: '/usr/bin/python3.5' The correct approach is to use relative paths: organize: usr/bin/python3.5: "usr/bin/python" I can't imagine why you'd want to organise absolute paths. Maybe we should disallow it altogether? Failing that, can we warn?

Evaluation history

No evaluation history available.